package com.wtp.wallpaper.controller.user;

import com.wtp.wallpaper.pojo.result.Result;
import com.wtp.wallpaper.service.CollectService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class CollectController {

    @Autowired
    private CollectService collectService;

    @GetMapping("/changeCollect")
    public Result changeCollect(Long picId,boolean state){
        collectService.changeCollect(picId,state);
        return Result.success();
    }
}
